package com.corecloud.controller.sys;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;


/**
 * 统一异常处理控制器
 */
@Controller
public class SysErrorController {
	@GetMapping("/400")
	public String badRequest() {
		return "error/400";
	}

	@GetMapping("/404")
	public String notFound() {
		return "error/404";
	}

	/*@GetMapping({"/error","/500"})*/
	@GetMapping("/500")
	public String serverError() {
		return "error/500";
	}

	@GetMapping("/403")
	public String permission() {
		return "error/403";
	}

	@GetMapping("/error")
	public String error() {
		return "error/500";
	}


}
